$weuiCellBg:#FFFFFF;
$weuiCellBorderColor:#D9D9D9;
$weuiCellGapV:10px;
$weuiCellGapH:15px;
$weuiCellInnerGapH:.35em;
$weuiCellHeight: 44px;
$weuiCellFontSize:17px;
$weuiCellTipsFontSize:14px;
$weuiCellLabelWidth:105px;
$weuiDialogLineColor: #D5D5D6;
// $weuiCellLineHeight: unit(($weuiCellHeight - 2 * $weuiCellGapV) / $weuiCellFontSize); // 高度为44px，减去上下padding的行高
// $weuiCellsMarginTop:unit(20 / $weuiCellFontSize, em);

// weui switch
$weuiSwitchHeight: 32px;

// weui uploader
$weuiUploaderBorderColor:#D9D9D9;
$weuiUploaderActiveBorderColor:#999999;
$weuiUploaderFileSpacing: 9px;
$weuiUploaderSize: 79px;
$weuiUploaderBorderWidth: 1px;
$weuiBtnHeight:46px;
$weuiBtnFontSize:18px;
$weuiBtnFontColor:#FFFFFF;
$weuiBtnActiveFontColor:rgba(255,255,255,.6);
$weuiBtnDisabledFontColor:rgba(255,255,255,.6);
$weuiBtnBorderRadius:5px;
$weuiBtnDefaultGap:15px;

$weuiBtnMiniFontSize:13px;
$weuiBtnMiniHeight:2.3;

$weuiBtnDefaultFontColor:#000000;
$weuiBtnDefaultActiveFontColor:rgba(0,0,0,.6);
$weuiBtnDefaultDisabledFontColor:rgba(0,0,0,.3);

$weuiBtnDefaultBg:#F8F8F8;
$weuiBtnDefaultActiveBg:#DEDEDE;
$weuiBtnDefaultDisabledBg:#F7F7F7;

$weuiBtnPrimaryBg:#1AAD19;
$weuiBtnPrimaryActiveBg:#179B16;
$weuiBtnPrimaryDisabledBg:#9ED99D;

$weuiBtnWarnBg:#E64340;
$weuiBtnWarnActiveBg:#CE3C39;
$weuiBtnwarnDisabledBg:#EC8B89;


$weuiBtnPlainPrimaryColor:rgba(26,173,25,1);
$weuiBtnPlainPrimaryBorderColor:rgba(26,173,25,1);
$weuiBtnPlainPrimaryActiveColor:rgba(26,173,25,.6);
$weuiBtnPlainPrimaryActiveBorderColor:rgba(26,173,25,.6);

$weuiBtnPlainDefaultColor:rgba(53,53,53,1);
$weuiBtnPlainDefaultBorderColor:rgba(53,53,53,1);
$weuiBtnPlainDefaultActiveColor:rgba(53,53,53,.6);
$weuiBtnPlainDefaultActiveBorderColor:rgba(53,53,53,.6);

.weui-btn_default {
    color: $weuiBtnDefaultFontColor;
    background-color: $weuiBtnDefaultBg;
    &:not(.weui-btn_disabled):visited {
        color: $weuiBtnDefaultFontColor;
    }
    &:not(.weui-btn_disabled):active {
        color: $weuiBtnDefaultActiveFontColor;
        background-color: $weuiBtnDefaultActiveBg;
    }
}
.weui-form-preview{
    position: relative;
    background-color: #FFFFFF;
    &:before{
        @include setTopLine($weuiCellBorderColor);
    }
    &:after{
        @include setBottomLine($weuiCellBorderColor);
    }
}
.weui-form-preview__hd{
    position: relative;
    padding: $weuiCellGapV $weuiCellGapH;
    text-align: right;
    line-height: 2.5em;
    &:after{
        @include setBottomLine($weuiCellBorderColor);
        left: $weuiCellGapH;
    }
    .weui-form-preview__value{
        font-style: normal;
        font-size: 1.6em;
    }
}
.weui-form-preview__bd{
    padding: $weuiCellGapV $weuiCellGapH;
    font-size: .9em;
    text-align: right;
    line-height: 2;
}
.weui-form-preview__ft{
    position: relative;
    line-height: 50px;
    display: flex;
    &:after {
        @include setTopLine($weuiDialogLineColor);
    }
}
.weui-form-preview__item{
    overflow: hidden;
}
.weui-form-preview__label{
    float: left;
    margin-right: 1em;
    min-width: 4em;
    text-align: justify;
    text-align-last: justify;
}
.weui-form-preview__value{
    display: block;
    overflow: hidden;
    word-break:normal;
    word-wrap: break-word;
}
.weui-form-preview__btn {
    position: relative;
    display: block;
    flex: 1;
    text-align: center;
    @include setTapColor();
    &button{
        background-color: transparent;
        border: 0;
        outline: 0;
        font-size: inherit;
    }
    &:active {
    }
    &:after {
      @include setLeftLine($weuiDialogLineColor);
    }
    &:first-child {
        &:after {
            display: none;
        }
    }
}
.weui-form-preview__btn_default {
}
.weui-form-preview__btn_primary {
    color: #0BB20C;
}
